
<?php
    $db_host = "bdm246562380.my3w.com";
    $db_user = "bdm246562380";
    $db_password = "p081742lh";
    $db_name = "bdm246562380_db";

    $con = new mysqli($db_host,$db_user,$db_password,$db_name);

    $sql = "SELECT * FROM  orderInfo";
    $result = $con->query($sql);
    if($result->num_rows > 0 ){
        while($arr = $result->fetch_array()){
            echo $arr['orderId'].' '.$arr['customerName'].' '.$arr['freightAddress']."<br>";
        }
    }

    $result->close();
?>